package hello.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import hello.entity.User;
import org.apache.ibatis.annotations.Select;

public interface UserMapper extends BaseMapper<User> {

    // 自定义SQL语句方法1
    @Select("select * from User where id = 1;")
    User getNo1();

    // 自定义SQL语句方法2(通过mapper.xml)
    User getUserByIdForXmlMapper(Long id);
}
